home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #1
/
Amiga Plus CD - 1997 - No. 01.iso
/
pd
/
programmierung
/
mesa-1.2.8
/
mklib.freebsd
< prev
next >
Wrap
Text File
|
1996-05-27
|
445b
|
26 lines
#!/bin/sh
# Make a FreeBSD shared library
# contributed by Mark Diekhans <markd@grizzly.com>
# First argument is name of output library
# Rest of arguments are object files
VERSION="12.8"
LIBRARY=$1
shift 1
OBJECTS=$*
BASENAME=`echo ${LIBRARY} | sed "s/\.a//g"`
SHLIB=${BASENAME}.so.${VERSION}
STLIB=${BASENAME}.a
rm -f ${SHLIB} ${STLIB}
ar cq ${STLIB} ${OBJECTS}
ranlib ${STLIB}
ld -Bshareable -o ${SHLIB} ${OBJECTS}
mv ${SHLIB} ../lib